/*
 * Generated via the com.flca generator
 */
package flca.voicenav;
 
import com.flca.Bootstrapper;
import com.flca.IAppContext;
import flca.voicenav.VoiceNavModule;
import flca.voicenav.srv.RestVoiceNavServices;

import org.junit.Test;
import static org.junit.Assert.*;
	
public class VoiceNavTestStartup  
{
	@Test
	public void testStartup() {
		try {
			IAppContext appctx = Bootstrapper.startup(getGuiceModuleName());
			assertTrue(appctx != null);
			assertTrue(appctx.getInjector() != null);
			
			RestVoiceNavServices restsrv = new RestVoiceNavServices();
			assertTrue(restsrv.startupTest());
		} catch(Throwable t) {
			fail("failed " + t);
		}
	}
	private String getGuiceModuleName() 
	{
		return VoiceNavModule.class.getName();
	}
}
